package com.cf.config.websocket;

import com.cf.game.service.util.BeanFactoryUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * websocket-WebSocketConfig
 *
 * @author <a href="2428922347@qq.com">Zhu mingming</a>
 * @info
 * @since 2018/2/28 10:58
 */
@Configuration
public class WebSocketConfig {

    @Autowired
    private BeanFactoryUtil beanFactoryUtil;

    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }

}